package com.hgw.Demo11_VisitorPattern.VisitorPattern;

/**
 * Data time:2021/12/21 19:50
 * StudentID:2019112118
 * Author:hgw
 * Description: 抽象访问者类
 */
public abstract class Visitor {
    public abstract void visit(ConcreteElementA elementA);
    public abstract void visit(ConcreteElementB elementB);

    public void visit(ConcreteElementC elementC) {
        // 元素 ConcreteElementC 操作代码
    }
}
